package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.PeisongListAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.wallet.charge.ChargeActivity;
import com.kelvin.paopao.module.market.wallet.charge.IWalletChargePresenter;
import com.kelvin.paopao.module.market.wallet.charge.WalletChargePresenter;
import com.kelvin.paopao.module.peisong.list.IPeisongListPresenter;
import com.kelvin.paopao.module.peisong.list.PeisongListPresenter;
import com.kelvin.paopao.module.peisong.list.PeisonglistActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class PeisongListModule {
    private PeisonglistActivity mView;

    public PeisongListModule(PeisonglistActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IPeisongListPresenter providePresenter() {
        return new PeisongListPresenter(mView);
    }

    @PerActivity
    @Provides
    public PeisongListAdapter provideAdapter() {
        return new PeisongListAdapter(mView);
    }

}
